/**Class represents an exception for cases where polygons are created with too less edges. A polygon needs at least 3 edges.
 * 
 */
public class NotEnoughEdgesException extends Exception {

	/**Creates a new NotEnoughEdgesException containing an error-message telling that the specified number of edges is too small.
	 * 
	 * @param edges The number of edges given when tried to create a polygon with too less edges.
	 */
	public NotEnoughEdgesException(int edges) {
		super("Error: A polygon needs more than 2 edges. You wanted to initalize one with " + edges);
	}

	/**Creates a new NotEnoughEdgesException containing an individual error-message.
	 * 
	 * @param msg String value of given individual error-message.
	 */
	public NotEnoughEdgesException(String msg) {
		super(msg);
	}
}
